<?php

	require('ws_WebService_base.php');
	$web_service = new WebService_base();
	//Verify Freeway has enabled the Web Service
	if($web_service->ws_get_config()){
		$db_link = $web_service->db_connect();
		// Create the server	
		@session_name('ws_freeway');
		session_start();
		$server= new SoapServer($web_service->ws_path_url.$web_service->wsdl_page().'?'.$web_service->wsdl_request().'='.$web_service->load);
		$server->setClass('WebService_base');
		$server->setClass($web_service->load); //-----> Add the requested Class functions to the Soap Server
		$server->addFunction(SOAP_FUNCTIONS_ALL);
		$server->setPersistence(SOAP_PERSISTENCE_SESSION);
		$server->handle(); //--------------> Do it!
	}
	
?>